;
(function () {
  'use strict';
  angular.module('controllers.analysisSysOM.tradTime', [])
    .controller('tradTimeController', tradTimeController);

  function tradTimeController($scope, tradTimeService, CoreService, $rootScope) {
    $scope.pageInfo = tradTimeService;
    var spans = ['/maxTradTimeData', '/minTradTimeData', '/avgTradTimeData'];
    this.selectedIndex = CoreService.navgit(spans);
    $rootScope.$on('$stateChangeSuccess', function (event, state) {
      $scope.selectedIndex = spans.indexOf(state.url);
    });
  }

  tradTimeController.$inject = ['$scope', 'tradTimeService', 'CoreService', '$rootScope'];
})();